package com.example.mongologistics.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value="页面controller",tags={"页面操作接口"})
@Controller
public class IndexController {
    @ApiOperation(value = "index页面")
    @GetMapping("/")
    public String toIndexPage(){
        return "index";
    }

    @ApiOperation(value = "addorder页面")
    @GetMapping("/addorder.html")
    public String toAddOrderPage(){
        return "addorder";
    }

    @ApiOperation(value = "addlogistics页面")
    @GetMapping("/addlogistics.html")
    public String toAddLogisticsPage(){
        return "addlogistics";
    }

    @ApiOperation(value = "ordermanage页面")
    @GetMapping("/ordermanage.html")
    public String toOrderManagerPage(){
        return "ordermanage";
    }

}
